package sum;

/**
 * @Author MDD
 * @Description
 * @Version
 * @Date
 **/



public class Sum {

    public void sum(){}

    public int sum(int x,int y,int z){
        return x+y+z;
    }

    public int sum(int x,int y){
        return x+y;
    }
    public double sum(double x,double y,double z){
        return x+y+z;
    }

    public static void main(String[] args) {
        Sum sum = new Sum();
        System.out.println("int 类型2个整数和为：" +sum.sum(5,9)+"\n");
        System.out.println("int 类型3个整数和为：" +sum.sum(9,8,7)+"\n");
        System.out.println("int 类型2个整数和为：" +sum.sum(15,66,78)+"\n");
    }
}
